package com.ihr360.oneclick.request;

import com.ihr360.oneclick.request.query.SpreadSheetRowQueryParam;

/**
 * 电子表格详情获取模型
 *
 * @author tom
 * @date 18-1-8
 */
public class SpreadsheetDetailRequest {

    private boolean isQueryTempRow;

    private String termId;

    private String spreadsheetId;

    private String companyId;

    private SearchRequest<SpreadSheetRowQueryParam> searchRequest;

    public String getTermId() {
        return termId;
    }

    public void setTermId(String termId) {
        this.termId = termId;
    }

    public String getSpreadsheetId() {
        return spreadsheetId;
    }

    public void setSpreadsheetId(String spreadsheetId) {
        this.spreadsheetId = spreadsheetId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public SearchRequest<SpreadSheetRowQueryParam> getSearchRequest() {
        return searchRequest;
    }

    public void setSearchRequest(SearchRequest<SpreadSheetRowQueryParam> searchRequest) {
        this.searchRequest = searchRequest;
    }

    public boolean isNew() {
        return this.spreadsheetId == null;
    }

    public boolean isQueryTempRow() {
        return isQueryTempRow;
    }

    public void setQueryTempRow(boolean queryTempRow) {
        isQueryTempRow = queryTempRow;
    }
}
